﻿using System;

namespace PivotData
{
    [Serializable]
    public class FacetNumber : FacetAbsBase
    {
        /// <summary>
        /// Number to store
        /// </summary>
        public double Number;

        /// <summary>
        /// See if this object is equal to another object in a value sort-of-way.
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override bool Equals(object obj)
        {
            var f = obj as FacetNumber;
            if (f == null)
                return false;

            return f.Name == Name && f.Number == Number;
        }
    }
}
